import { ref } from "vue";

export function useStars (num, call=Function) {
  const starNum = ref(num);
  const setStarNum = (num) => {
    starNum.value = num;
    call()
  }

  return [
    starNum,
    setStarNum,
  ]
}